<template>
  <div class="minework">
    <div class="mineone" @click="uploadclick">
      <div class="mineone_div1">
        <img
          src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3760263613,561272050&fm=11&gp=0.jpg"
          alt=""
        />
        <div class="mineone_div">
          <p class="mineone_div_p1">{{account}}</p>
          <p class="mineone_div_p2">
            <i class="iconfont icon-shouji"></i>
            <span class="mineone_div_p2_span">暂无绑定手机号</span>
          </p>
        </div>
      </div>

      <div class="mineone_div2">
        <i class="iconfont icon-fanhui2"></i>
      </div>
    </div>
    <div class="minetwo">
      <ul class="minetwoui">
        <li class="minetwonli1" @click="clickmoney">
          <span class="li1span1"><b>0.00</b>元</span><br />
          <span class="li1span2">我的余额</span>
        </li>
        <li class="minetwonli2" @click="clickpreferential">
          <span class="li2span1"><b>3</b>个</span><br />
          <span class="li2span2">我的优惠</span>
        </li>
        <li class="minetwonli3" @click="clickintegral">
          <span class="li3span1"><b>0</b>分</span><br />
          <span class="li3span2">我的积分</span>
        </li>
      </ul>
    </div>
    <!-- 下面三个选项部分 -->
    <div class="minethree">
      <van-cell title="我的订单" is-link to="">
        <template #icon>
          <van-icon class="iconfont icon-icon37" />
        </template>
      </van-cell>
      <van-cell title="积分商城" is-link to="Ji_Afen">
        <template #icon>
          <van-icon class="iconfont icon-scheng" />
        </template>
      </van-cell>
      <van-cell title="饿了么会员卡" is-link to="Members">
        <template #icon>
          <van-icon class="iconfont icon-huangguan1" />
        </template>
      </van-cell>
    </div>
    <!-- 下面两个部分 -->
    <div class="minefour">
      <van-cell title="服务中心" is-link to="Service">
        <template #icon>
          <van-icon class="iconfont icon-lansefangkuaix" />
        </template>
      </van-cell>
      <van-cell title="下载饿了么APP" is-link to="Download">
        <template #icon>
          <van-icon class="iconfont icon-elemo" />
        </template>
      </van-cell>
    </div>
    <Foot/>
  </div>
</template>

<script>
import Foot from '../components/footBar_comm'
import Vue from 'vue';
import { Cell, CellGroup } from 'vant';

Vue.use(Cell);
Vue.use(CellGroup);

export default {
  name: "MineWork",
  data:function(){
    return {
      account:"登录注册"
    }
  },
  components: {
    Foot
  },
  methods: {
    uploadclick(){
      this.$router.push({ name: "Upload" });
    },
    clickmoney() {
      this.$router.push({ name: "Mymoney" });
    },
    clickpreferential() {
      this.$router.push({ name: "Mypreferential" });
    },
    clickintegral() {
      this.$router.push({ name: "Myintegral" });
    },
  },
  created () {
   this.account = localStorage.getItem("account")
  }
};
</script>

<style lang="less">
html {
  background-color: #f5f5f5;
}
.minework {
  font-size: 0.8rem;
  color: #fff;
  // 蓝色部分
  .mineone {
    width: 100%;
    height: 100px;
    display: flex;
    box-align: center;
    align-items: center;
    background: #3190e8;
    padding: 0px 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;

    .mineone_div1 {
      display: flex;
      justify-content: space-between;
      align-items: center;
      // 头像
      img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
      }
    }
    .mineone_div2{
      .icon-fanhui2{
        font-size: 12px;
      }
    }
    .mineone_div {
      padding-left: 5px;
      box-sizing: border-box;
      .mineone_div_p1 {
        font-size: 16px;
        margin-top: 10px;
        margin-left: 8px;
      }
      .mineone_div_p2 {
        margin-top: 10px;
        font-size: 14px;

        .icon-shouji {
          font-size: 20px;
        }
      }
    }
  }
  // 第二部分的三个白块
  .minetwo {
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    .minetwoui {
      zoom: 1;
      list-style: none;
      font-style: normal;
      text-decoration: none;
      border: none;
      color: #333;
      font-weight: 400;
      font-family: Microsoft Yahei;
      overflow: hidden;
      text-align: center;
      .minetwonli1 {
        width: 33.1%;
        height: 85.22px;
        float: left;
        .li1span1 {
          font-size: 0.55rem;
          color: #333;
          padding: 0.853333rem 0 0.453333rem;
          display: inline-block;

          b {
            display: inline-block;
            font-size: 25px;
            color: #f90;
            font-weight: 700;
            line-height: 2rem;
            font-family: Helvetica Neue, Tahoma;
          }
        }

        .li1span2 {
          font-size: 0.57333rem;
          color: #666;
          font-weight: 400;
          padding-bottom: 0.453333rem;
        }
      }
      .minetwonli2 {
        width: 33.1%;
        height: 85.22px;
        float: left;
        border-left: 1px solid #f5f5f5;

        .li2span1 {
          font-size: 0.55rem;
          color: #333;
          padding: 0.853333rem 0 0.453333rem;
          display: inline-block;

          b {
            display: inline-block;
            font-size: 25px;
            color: #ff5f3e;
            font-weight: 700;
            line-height: 2rem;
            font-family: Helvetica Neue, Tahoma;
          }
        }

        .li2span2 {
          font-size: 0.57333rem;
          color: #666;
          font-weight: 400;
          padding-bottom: 0.453333rem;
        }
      }
      .minetwonli3 {
        border-left: 1px solid #f5f5f5;
        width: 33%;
        height: 85.22px;
        float: left;

        .li3span1 {
          font-size: 0.55rem;
          color: #333;
          padding: 0.853333rem 0 0.453333rem;
          display: inline-block;

          b {
            display: inline-block;
            font-size: 25px;
            color: #6ac20b;
            font-weight: 700;
            line-height: 2rem;
            font-family: Helvetica Neue, Tahoma;
          }
        }

        .li3span2 {
          font-size: 0.57333rem;
          color: #666;
          font-weight: 400;
          padding-bottom: 0.453333rem;
        }
      }
    }
  }
  .minethree {
    margin-top: 15px;
    .van-cell--clickable {
      font-size: 16px;
      .icon-icon37 {
        width: 16.292px;
        height: 16.406px;
        font-size: 20px;
      }
      .icon-scheng {
        width: 16.292px;
        height: 16.406px;
        color: rgb(252, 123, 83);
        margin-top: 4px;
      }
      .icon-huangguan1 {
        width: 16.292px;
        height: 16.406px;
        font-size: 12px;
        color: rgb(255, 198, 54);
        margin-top: 6px;
      }
      .van-cell__title {
        margin-left: 4px;
      }
    }
    .custom-title {
      margin-right: 4px;
      vertical-align: middle;
    }

    .search-icon {
      font-size: 16px;
      line-height: inherit;
    }
  }
  // 第四部分
  .minefour {
    margin-top: 15px;
    .van-cell--clickable {
      font-size: 16px;
      .icon-lansefangkuaix {
        color: rgb(74, 165, 240);
        width: 16.29px;
        height: 16.29px;
        margin-top: 5px;
        margin-right: 4px;
      }
      .icon-elemo {
        color: rgb(93, 168, 232);
        width: 16.29px;
        height: 12.22px;
        margin-top: 4px;
        margin-right: 4px;
      }
    }
  }
}
</style>